using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// Clazz
    /// </summary>    
	[Table("clazz")]
    public partial class ClazzEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("clazz_name")]
        public string ClazzName { get; set; }
    }

	public class ClazzEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<ClazzEntity>(new EntityTypeConfiguration<ClazzEntity>());
        }
    }
}

